//
//  UIImage+Compress.h
//  QfqManage
//
//  Created by Tyrant on 9/9/15.
//  Copyright (c) 2015 QingFanQie. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Accelerate/Accelerate.h>


@interface UIImage(Compress)

- (NSData*)Compress;

/**
 *  根据颜色创建一个图片 --- 周成
 */
+ (UIImage *)createImageWithColor:(UIColor *)color;

/**
 *  创建一张圆角图片
 */
- (UIImage *)circleImage;


+ (UIImage *)resizedImage:(NSString *)name;

+ (UIImage *)resizedPercentImage:(NSString *)name;

/**
 *  vImage模糊图片
 *
 *  @param image 原始图片
 *  @param blur  模糊数值(0-1)
 *
 *  @return 重新绘制的新图片
 */
+(UIImage *)boxblurImage:(UIImage *)image withBlurNumber:(CGFloat)blur;


/**
 *  CoreImage图片高斯模糊
 *
 *  @param image 图片
 *  @param blur  模糊数值(默认是10)
 *
 *  @return 重新绘制的新图片
 */

+(UIImage *)coreBlurImage:(UIImage *)image withBlurNumber:(CGFloat)blur;



+ (UIImage *)createImageWithColor1:(UIColor *)color;

@end
